<template>
    <el-dialog v-model="viewData.show"></el-dialog>
</template>

<script lang="ts" setup>
import { reactive, watch } from 'vue'

const props = defineProps<{ show: boolean }>()

const viewData = reactive({
    show: props.show,
})

watch(
    () => props.show,
    () => {
        viewData.show = props.show
    },
)
</script>

<style scoped lang="scss"></style>
